package com.baizhi.controller;

import com.baizhi.entity.CmfzMenue;
import com.baizhi.service.CmfzMenueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @Author: renpu
 * @Date: 2019/2/26 20:57
 * @Description:
 */
@Controller
@RequestMapping("/Menue")
public class CmfzMenueController {
    @Autowired
    private CmfzMenueService menueService;

    @RequestMapping("/showMenue")
    @ResponseBody
    public List<CmfzMenue> showMenue(){
        return menueService.selectAll();
    }

}
